<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:75:"/www/wwwroot/mamingwang.cn/yzf/application/admin/view/balancelog/index.html";i:1556449037;s:70:"/www/wwwroot/mamingwang.cn/yzf/application/admin/view/common/head.html";i:1556002984;}*/ ?>
<!DOCTYPE html>
<html>
  
  <head>
    <meta charset="UTF-8">
    <title>聚财国际</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="/public/static/css/font.css"> 
	<link href="/favicon.ico" type="image/x-icon" rel="shortcut icon" /> 
    <link rel="stylesheet" href="/public/static/css/xadmin.css">
    <link href="/public/static/lib/layui/css/layui.css" rel="stylesheet">
    <script type="text/javascript" src="/public/static/js/jquery.min.js"></script>
    <script type="text/javascript" src="/public/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/public/static/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
      <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
      <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
    <script type="text/css">
      #fff{
        border: red solid 1px;
      }
    </script>
  </head>
  
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a >首页</a>
        <a >演示</a>
        <a>
          <cite>流水</cite>
        </a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="<?php echo url('admin/balancelog/index'); ?>" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div class="x-body">
    <div class="layui-row">
        <form class="layui-form layui-col-md12 x-so">
            <div class="layui-input-inline">
                <select name="type">
                    <option value="">流水类型</option>
                    <option value="1">信用额度</option>
                    <option value="2">佣金</option>
                    <option value="3">信用分</option>
                </select>
            </div>
            <div class="layui-input-inline">
                <select name="fromtype">
                    <option value="">原因</option>
                    <option value="1">匹配成功</option>
                    <option value="2">完成订单</option>
                    <option value="3">提现</option>
                    <option value="4">订单超时</option>
                </select>
            </div>
            <span>发布时间</span><input class="layui-input" placeholder="开始日" name="datemin" id="start">至
            <input class="layui-input" placeholder="截止日" name="datemax" id="end">
            <input type="submit" name="sub" class="layui-btn" value="开始搜索" lay-submit="" lay-filter="sreach">
        </form>
    </div>
    <table class="layui-table">
        <thead>
        <tr style="text-align: center">
            <th>序号NO</th>
            <th>会员昵称</th>
            <th>类型</th>
            <th>数量</th>
            <th >原因</th>
            <th>订单前</th>
            <th>订单后</th>
            <th>备注</th>
            <th>时间</th>
            <th style="text-align: center">操作</th>
        </tr>
        </thead>
        <tbody>
        <?php if(is_array($indent) || $indent instanceof \think\Collection || $indent instanceof \think\Paginator): $key = 0; $__LIST__ = $indent;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$b): $mod = ($key % 2 );++$key;?>
        <tr style="text-align: center">
            <td><?php echo $b['id']; ?></td>
            <td><?php echo $b['iuser']['u_name']; ?></td>
            <td><?php if($b['type'] ==1): ?>信用额度<?php elseif($b['type']==2): ?>佣金<?php elseif($b['type']==3): ?>信用分<?php endif; ?></td>
            <td><?php echo $b['num']; ?></td>
            <td><?php if($b['from_type'] == 1): ?>匹配成功<?php elseif($b['from_type']==2): ?>完成订单<?php elseif($b['from_type']==3): ?>提现<?php elseif($b['from_type']==4): ?>订单超时<?php endif; ?></td>
            <td><?php echo $b['before_num']; ?></td>
            <td><?php echo $b['after_num']; ?></td>
            <td><?php echo $b['memo']; ?></td>
            <td><?php echo $b['createtime']; ?></td>
            <td class="td-manage">
                <a title="删除订单" href="javascript:;"  onclick="member_stop2(this,'<?php echo $b['id']; ?>')"  class="layui-btn   layui-btn-radius layui-btn-danger layui-btn-sm"><span style="color: #EFEEF0">删除订单</span>
                </a>
            </td>
        </tr>
        <?php endforeach; endif; else: echo "" ;endif; ?>
        </tbody>
    </table>
    <div class="page">
        <div>
            <?php echo $page; ?>
        </div>
    </div>

</div>
<script>
    function member_stop2(obj,id){
        layer.confirm('确认删除订单吗？',function(index){
            var id=id;
            $.ajax({
                url:'<?php echo URL("balancelog/del"); ?>',
                data:{id:id},
                type:'post',
                dataType:'json',
                success:function(msg){
                    if(msg==1){
                        layer.msg('删除成功',{icon: 1,time:6000});
                        window.location.reload();//刷新父级窗口
                    }
                }
            });
        });
    }
</script>

</body>

</html>